Ext.define('Admin.store.NavigationTree', {
    extend: 'Ext.data.TreeStore',

    storeId: 'NavigationTree',

    fields: [{
        name: 'text'
    }],

    root: {
        expanded: true,
        children: [
            {
                text: 'Dashboard',
                iconCls: 'x-fa fa-desktop',
                rowCls: 'nav-tree-badge nav-tree-badge-new',
                viewType: 'admindashboard',
                routeId: 'dashboard', // routeId defaults to viewType
                leaf: true
            },
            {
                text: '用户管理模块',
                iconCls: 'x-fa fa-user-md',
                //rowCls: 'nav-tree-badge nav-tree-badge-hot',
                viewType: 'userModelPanel',
                leaf: true
            },
             {
                text: '客户模块',
                iconCls: 'x-fa fa-desktop',
                rowCls: 'nav-tree-badge nav-tree-badge-new',
                expanded: false,
                selectable: false,
                children: [
                    {
                        text: '信息管理',
                        iconCls: 'x-fa fa-file-o',
                        viewType: 'pageblank',
                        leaf: true
                    },
                    {
                        text: '客户关怀',
                        iconCls: 'x-fa fa-exclamation-triangle',
                        viewType: 'pageblank',
                        leaf: true
                    },
                    {
                        text: '客户分析',
                        iconCls: 'x-fa fa-times-circle',
                        viewType: 'pageblank',
                        leaf: true
                    }
                ]
            },
             {
                text: '销售模块',
                iconCls: 'x-fa  fa-dollar',
                rowCls: 'nav-tree-badge nav-tree-badge-new',
                expanded: false,
                selectable: false,
                children: [
                    {
                        text: '信息管理',
                        iconCls: 'x-fa fa-file-o',
                        viewType: 'pageblank',
                        leaf: true
                    },
                    {
                        text: '渠道管理',
                        iconCls: 'x-fa fa-code-fork',
                        viewType: 'pageblank',
                        leaf: true
                    },
                    {
                        text: '订单管理',
                        iconCls: 'x-fa fa-paste',
                        viewType: 'pageblank',
                        leaf: true
                    },
                    {
                        text: '销售计划',
                        iconCls: 'x-fa  fa-check',
                        viewType: 'lockscreen',
                        leaf: true
                    },
                    {
                        text: '销售分析',
                        iconCls: 'x-fa  fa-bar-chart-o',
                        viewType: 'pageblank',
                        leaf: true
                    }
                ]
            },
                        {
                text: '服务模块',
                iconCls: 'x-fa fa-send',
                rowCls: 'nav-tree-badge nav-tree-badge-hot',
                expanded: false,
                selectable: false,
                children: [
                    {
                        text: '产品档案',
                        iconCls: 'x-fa fa-file-o',
                        viewType: 'pageblank',
                        leaf: true
                    },

                    {
                        text: '用户反馈',
                        iconCls: 'x-fa fa-exclamation-triangle',
                        viewType: 'pageblank',
                        leaf: true
                    },
                    {
                        text: '售后管理',
                        iconCls: 'x-fa fa-times-circle',
                        viewType: 'pageblank',
                        leaf: true
                    }
                ]
            },
            {
                text: '系统模块',
                iconCls: 'x-fa fa-user',
                expanded: false,
                selectable: false,
                children: [
                    {
                        text: '部门管理',
                        iconCls: 'x-fa fa-file-o',
                        viewType: 'departmentModelPanel',
                        leaf: true
                    },

                    {
                        text: '用户管理',
                        iconCls: 'x-fa fa-exclamation-triangle',
                        viewType: 'numberModelPanel',
                        leaf: true
                    },
                    {
                        text: '角色管理',
                        iconCls: 'x-fa fa-times-circle',
                        viewType: 'pageblank',
                        leaf: true
                    },
                    {
                        text: '日记管理',
                        iconCls: 'x-fa fa-times-circle',
                        viewType: 'pageblank',
                        leaf: true
                    }
                ]
            }
        ]
    }
});
